// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  css: ['~/assets/css/global.scss'],
  plugins: [
    '~/plugins/ant-design-vue'
  ],
  devServer: {
    host: '0.0.0.0',  // 允许外部访问
    port: 3000        // 自定义端口
  },
  ssr: true,
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },
  // 配置代理服务器解决跨域问题
  nitro: {
    devProxy: {
      '/api': {
        target: 'http://115.190.159.128:8082',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/api'
        }
      }
    }
  }
})
